﻿/**
<code>
  <author name="Zealic" email="zealic(at)gmail.com" type="Creator"/>
</code>
**/
using System;


namespace Zealib.Template
{
    public sealed class TemplateSettings
    {
        public char? EscapeChar { get; set; }

        public string Prefix { get; set; }

        public string Suffix { get; set; }

        public Func<string, bool> Validator { get; set; }

        public bool Validate(string expression)
        {
            if (Validator == null)
                throw new InvalidOperationException();
            return Validator(expression);
        }

    }
}
